{include file="header.html"}

<div class="body">
	<div class="nav">
		<a href="?app=home&act=index">首页</a> > <a href="?app=setting&act=index">系统设置</a> > 所有管理员
	</div>
	<div class="addbtn">
			<a href="?app=setting&act=manager" class="addbtn">所有管理员</a> &nbsp; 
			<a href="?app=setting&act=manager_add" class="addbtn">增加管理员</a> &nbsp; 
			<a href="?app=setting&act=log" class="addbtn">日志管理</a> &nbsp; 		
	</div>
	<form action="?" method="get">
	<div class="search">
	<input type="hidden" name="app" id="app" value="setting" />
	<input type="hidden" name="act" id="act" value="manager" />
	<span>ID</span><input type="text" name="id" id="id" value="{$id}" /> 
	<span>关键词</span><input type="text" name="keyword" id="keyword" value="{$keyword}" /> 
	<input type="submit" class="btn" value="搜 索" class="btn" /> 
	<div class="clear"></div>
	</div>
	</form>

	
	<div class="list">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr class="h">
				<th>ID</th>
				<th>登录名称</th>
				<th>真实姓名</th>
				<th>上次登录时间</th>
				<th>上次登录IP</th>
				<th>登录次数</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			{foreach from=$rs item=row name=row}
			<tr bgcolor="white">
				<td>{$row.id}</td>
				<td style="text-align:left;">
					<a href="?app=setting&act=manager_add&id={$row.id}">{$row.name}</a>
				</td>
				<td style="text-align:left;">
					<a href="?app=setting&act=manager_add&id={$row.id}">{$row.real_name}</a>
				</td>
				<td align="center">{$row.last_time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
				<td align="center">{$row.last_ip}</td>
				<td align="center">{$row.logins}</td>
				<td align="center">{if $row.status==1}正常{else}冻结{/if}</td>
				<td align="center">
				<a href="?app=setting&act=manager_add&id={$row.id}" class="ico2"></a> 
				{if $is_admin==1}
				<a class="ico3 delete" href="?app=setting&act=manager_delete&id={$row.id}"></a> 
				{/if}
				</td>
			</tr>
			{foreachelse}
			<tr bgcolor="white"><td colspan="14" height="50">暂无记录</td></tr>
			{/foreach}
		</table>

	<div class="clear"></div>
	<div class="mypage" style="text-align:right">
			共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
	</div>
</div>


{include file="footer.html"}